package com.SpringBoot.location.mapper;

import com.SpringBoot.location.pojo.Location;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 用户地址表 Mapper 接口
 * </p>
 *
 * @author bxk
 * @since 2025-09-19
 */
public interface LocationMapper extends BaseMapper<Location> {

    void addLocation(Location location);
    void updateLocation(Location location);
    void deleteLocation(@Param("locationId") Integer locationId);
    Location getLocationById(@Param("locationId") Integer locationId);
    ArrayList<Location> getLocationByUserId(@Param("userId") Integer userId);

}
